#include "choose_level.h"
#include "ui_choose_level.h"

choose_level::choose_level(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::choose_level)
{
    ui->setupUi(this);

    connect(ui->level_1, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_2, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_3, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_4, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_5, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_6, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_7, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_8, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->level_9, SIGNAL(clicked()), this, SIGNAL(goToGameView()));
    connect(ui->return_2,SIGNAL(clicked()), this, SIGNAL(goTostartgame()));
}

choose_level::~choose_level()
{
    delete ui;
}

